<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title></title>
		<style>
			
		</style>
		<script src="./src/vue.js"></script>
	</head>

	<body>
		<div id="app">
			<button @click="changeMessage">按钮</button>
			{{message}}
		</div>
		<script>
			let d = {
				message:'hello,vue'
			};
			// 数据劫持，转成getter/setter形式
			let vm = new Vue({
				el:'#app',
				data: d,
				methods: {
					changeMessage(){
						this.message = '改变了'
					}
				}
			})

			console.log(vm);
		</script>
	</body>
</html>